const router = require("express").Router()
const { addDrama, removeDrama, updateDrama, getDrama, getDramaByTag, getAllDrama } = require("../controllers/dramaControllers")
const { verifiedFunction, checkAdmin, checkStore } = require("./verifyJwtToken");


router.post('/admin/add', verifiedFunction, checkAdmin, addDrama)
router.post('/admin/remove', verifiedFunction, checkAdmin, removeDrama)
router.post('/admin/update', verifiedFunction, checkAdmin, updateDrama)
router.get('/get', getDrama)

// router.get('/get', getAllDrama)
// router.get('/getbytag/:find', getDramaByTag)

module.exports = router